package com.VancouverTongue.bean;

import com.VancouverTongue.database.HelpObj;

public class Comment {

	// front end
	public int commentId;
	public int restaurantId;
	public String message="";
	public String userId="";
	public double price;
	public String date="";

	// data end
	public int messageId;

	public Comment() {

		commentId = 0;
		restaurantId = 0;
		messageId = 0;
		userId = "";
		date = "";
		price = 0.00;
		message="";

	}

	public int getCommentId() {
		return commentId;
	}

	public void setCommentId(int commentId) {
		this.commentId = commentId;
	}

	public int getRestaurantId() {
		return restaurantId;
	}

	public void setRestaurantId(int restaurantId) {
		this.restaurantId = restaurantId;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
		this.message = HelpObj.checkString(this.message, 300);
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = HelpObj.HTMLcheck(userId);
		this.userId = HelpObj.checkString(this.userId, 15);
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = HelpObj.HTMLcheck(date);
	}

	public int getMessageId() {
		return messageId;
	}

	public void setMessageId(int messageId) {
		this.messageId = messageId;
	}


}
